﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListButtonControl.ascx.cs"
    Inherits="Besture.UI.Admin.Control.ListButtonControl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2" Namespace="DevExpress.Web.ASPxEditors"
    TagPrefix="dx" %>
<%--<table>
    <tr>
        <td>
            <dx:ASPxButton ID="btnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False"
                Text="选中全部">
                <ClientSideEvents Click="function(s, e) { grid.SelectRows(); }" />
            </dx:ASPxButton>
        </td>
        <td>
            <dx:ASPxButton ID="btnUnSelectAll" runat="server" UseSubmitBehavior="False" AutoPostBack="False"
                Text="取消全部">
                <ClientSideEvents Click="function(s, e) { grid.UnselectRows(); }" />
            </dx:ASPxButton>
        </td>
        <td>
            <dx:ASPxButton ID="btnDel" runat="server" UseSubmitBehavior="False" Text="删除选中" OnClick="btnDel_Click">
                <ClientSideEvents Click="function(s, e) { e.processOnServer= confirm('删除后无法恢复，确定删除选中项吗?'); }" />
            </dx:ASPxButton>
        </td>
        <td>
            <dx:ASPxButton ID="btnAdd" runat="server" UseSubmitBehavior="False" Text="添加" OnClick="btnAdd_Click" />
        </td>
    </tr>
</table>--%>
<ul>
    <li><a href="javascript:grid.SelectRows();" class="operate-all"><s class="icon-gou-red"></s>全选</a></li>
    <li><a href="javascript:grid.UnselectRows();" class="operate-cancel"><s class="icon-cancel-yellow"></s>
        取消</a></li>
    <li>
        <asp:LinkButton ID="lbAllDelete" runat="server" OnClientClick="return confirm('删除后无法恢复，确定删除选中项吗?');"
            class="operate-delete" OnClick="btnDel_Click"><s class="icon-delete"></s>删除</asp:LinkButton>
    </li>
    <li>
        <asp:LinkButton ID="lbAdd" runat="server" class="operate-add" OnClick="btnAdd_Click"><s class="icon-add-green"></s>添加</asp:LinkButton>
    </li>
  <%--  <li><a href="javascript:void(0);" class=""><s class="icon-export-gray"></s>导出</a></li>--%>
</ul>
